package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.proxy.staticProxy;

public class ProxyStar implements Star {

    private  Star star;

    public ProxyStar(Star star) {
        this.star = star;
    }

    @Override
    public void confer() {
        System.out.println("ProxyStar confer");
    }

    @Override
    public void signContract() {
        System.out.println("ProxyStar signContract");
    }

    @Override
    public void bookTicker() {
        System.out.println("ProxyStar bookTicker");
    }

    @Override
    public void sing() {
        this.star.sing();
    }

    @Override
    public void collectMoney() {
        System.out.println("ProxyStar collectMoney");
    }
}
